<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "user_shopping".
 *
 * @property integer $id
 * @property integer $user_id
 * @property integer $type
 * @property string $jsondata
 * @property integer $count
 * @property integer $createtime
 */
class UserShopping extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'user_shopping';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id', 'type', 'count', 'createtime'], 'integer'],
            [['jsondata'], 'string']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'user_id' => 'User ID',
            'type' => 'Type',
            'jsondata' => 'Jsondata',
            'count' => 'Count',
            'createtime' => 'Createtime',
        ];
    }
}
